From 81f77d84000fc5fdc56afe1d78b3627e90e39638 Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Mon, 28 Nov 2005 16:48:25 +0000 Subject: [PATCH] Change uuid string format to match that outputted by Xen. Signed-off-by: Ewan Mellor --- tools/python/xen/xend/uuid.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/python/xen/xend/uuid.py b/tools/python/xen/xend/uuid.py index 77517e9fbe..c471067fdd 100644 --- a/tools/python/xen/xend/uuid.py +++ b/tools/python/xen/xend/uuid.py @@ -54,8 +54,7 @@ def create(): def toString(u): - f = "%02x" - return ( "-".join([f*4, f*2, f*2, f*2, f*6]) % tuple(u) ) + return "-".join(["%02x" * 4] * 4) % tuple(u) def fromString(s): s = s.replace('-', '') -- 2.30.2